package com.jms.web.controller.jms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jms.common.annotation.Excel;
import com.jms.common.core.domain.BaseEntity;

/**
 * 附件对象 attach_file
 * 
 * @author drx
 * @date 2024-04-29
 */
public class AttachFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 业务id */
    @Excel(name = "业务id")
    private Long sourceId;

    /** 文件类别 01 问题反馈 */
    @Excel(name = "文件类别 01 问题反馈")
    private String fileClass;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String name;

    /** 文件url */
    @Excel(name = "文件url")
    private String url;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String createName;

    /** 修改人姓名 */
    @Excel(name = "修改人姓名")
    private String updateName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setFileClass(String fileClass) 
    {
        this.fileClass = fileClass;
    }

    public String getFileClass() 
    {
        return fileClass;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sourceId", getSourceId())
            .append("fileClass", getFileClass())
            .append("name", getName())
            .append("url", getUrl())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("createName", getCreateName())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateName", getUpdateName())
            .toString();
    }
}
